package b面向对象.day3.demo6_重载;

public class Car {
    String name;
    String color;

    public Car(){
    }
    public Car(String name){
        this.name=name;
    }

    public void driver(){

    }
    public void driver(String name){
        System.out.println(name+"在行驶中...");
    }

    int driver(String name,String color){
        System.out.println(name+"在行驶中...,color:"+color);
        return 0;
    }

}
